package com.tucy.logistics.security.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tucy.logistics.common.entity.user.SystemUser;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * author: tcy
 * createDate: 2023/8/14
 * description:
 */
@Setter
@Getter
public class TokenDetails {

    @ApiModelProperty("用户信息")
    private SystemUser user;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;
}
